/*
 * @Author: wangjh wangjiahui0710@163.com
 * @Date: 2024-06-11 11:33:50
 * @LastEditors: wangjh wangjiahui0710@163.com
 * @LastEditTime: 2024-07-18 14:14:29
 * @FilePath: \cip-admin\src\main.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import "@unocss/reset/tailwind.css";
import "@/styles/theme.scss";
import "@/styles/style.scss";
import "uno.css";
import "./element-plus";

import { createApp } from "vue";

import App from "./app.vue";
import { setupRouter } from "./routers";
import { setupStore } from "./stores";
import { createToDayjsPlugin } from "./utils/to-dayjs";
import * as echarts from "echarts";
import eventBus from 'vue3-eventbus'


const app = createApp(App);
// dayjs  $toDayjs
app.use(createToDayjsPlugin());

// eventBus
app.use(eventBus)

// pinia
setupStore(app);

// 屏幕适配 $vh $vw $viewPort
// app.use(createViewPortPlugin(1920, 1080));

// echarts
app.config.globalProperties.$echarts = echarts;

// 路由
setupRouter(app);

app.mount("#app");
